﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="add_room.aspx.cs" Inherits="add_room" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div align="center">
    <br /><br /><br />
    <img src="Image/add-room.png" alt=""/><br /><br />
    <table>
        <tr><td style="color: #FFCC66">ROOM No. : </td>
        <td><asp:TextBox ID="TextBox1" runat="server" BackColor="#FFCC66" Width="190px" 
                    BorderColor="#FF9966"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator5"
                        runat="server" ErrorMessage="*" ControlToValidate="TextBox1" 
                    ForeColor="#FFCC66"></asp:RequiredFieldValidator></td></tr>

        <tr>
            <td style="color: #FFCC66">ROOM TYPE : </td>
            <td>
                <asp:DropDownList ID="DropDownList1" runat="server" BackColor="#FFCC66" 
                    DataSourceID="orclDataSource1" DataTextField="ROOM_TYPE_NAME" 
                    DataValueField="ROOM_TYPE_ID" Width="190px">
                </asp:DropDownList>
               
                <asp:SqlDataSource ID="orclDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:ConnectionString11 %>" 
                    ProviderName="<%$ ConnectionStrings:ConnectionString11.ProviderName %>" 
                    SelectCommand="SELECT ROOM_TYPE_ID, ROOM_TYPE_NAME FROM ROOM_DETAIL">
                </asp:SqlDataSource>
               
            </td>
        </tr>

        <tr>
            <td style="color: #FFCC66">STATUS : </td>
            <td>
                <asp:DropDownList ID="DropDownList2" runat="server" BackColor="#FFCC66" 
                    Width="190px" AutoPostBack="True">
                    <asp:ListItem Value="N" Selected="True">NO</asp:ListItem>
                    <asp:ListItem Value="Y">YES</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>

         <tr><td style="color: #FFCC66">CURRENT GUEST : </td>
        <td>
            <asp:DropDownList ID="DropDownList3" runat="server" 
                DataSourceID="orclDataSource2" DataTextField="GUEST_ID" 
                DataValueField="GUEST_ID" BackColor="#FFCC66" Width="190px">
                <asp:ListItem>- None -</asp:ListItem>
            </asp:DropDownList>
            <asp:SqlDataSource ID="orclDataSource2" runat="server" 
                ConnectionString="<%$ ConnectionStrings:ConnectionString12 %>" 
                ProviderName="<%$ ConnectionStrings:ConnectionString12.ProviderName %>" 
                SelectCommand="SELECT GUEST_ID FROM GUESTS"></asp:SqlDataSource>
        </td></tr>
           

        

         <!--<tr>
            <td></td>
            <td></td>
        </tr>-->

        <tr>
            <td></td>
            <td>
                <asp:Button ID="Button1" runat="server" Text="ADD" BackColor="#FFCC66" 
                    Height="25px" Width="85px" onclick="Button1_Click" BorderColor="#FF9966" />&nbsp;&nbsp;&nbsp; 
                <asp:Button ID="Button2"
                    runat="server" Text="Cancel" BackColor="#FFCC66" Height="25px" 
                    Width="85px" onclick="Button2_Click" BorderColor="#FF9966" 
                    CausesValidation="False" /></td>
        </tr>

        <tr>
            <td></td>
            <td><asp:Label ID="Label1" runat="server" ForeColor="#FFCC66"></asp:Label></td>
        </tr>

        <tr>
            <td></td>
            <td>
                <asp:Button ID="Button3" runat="server" Text="<< Back" BackColor="#FFCC66" 
                    onclick="Button3_Click" Height="25px" Width="85px" BorderColor="#FF9966" 
                    CausesValidation="False" /></td>
        </tr>
        
    </table>

</div>
</asp:Content>

